package com.atguigu.tingshu.account.mapper;

import com.atguigu.tingshu.model.account.UserAccountDetail;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface UserAccountDetailMapper extends BaseMapper<UserAccountDetail> {

    /**
     * 查询账户变动日志
     * @param page 分页对象
     * @param userId 用户
     * @param tradeType 交易类型
     * @return
     */
    Page<UserAccountDetail> getUserAccountDetail(Page<UserAccountDetail> page, @Param("userId") Long userId, @Param("tradeType") String tradeType);

}
